﻿using System;
using System.Collections.ObjectModel;
using RssNewsFeeder.Model.Business;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RssNewsFeeder.ViewModel
{
    public class NewsCompanyViewModel:ViewModelBase
    {
        private NewsCompanyCollection _newsCompanyCollection;

        /// <summary>
        /// Constructor
        /// </summary>
        public NewsCompanyViewModel()
        {
            _newsCompanyCollection = new NewsCompanyCollection();
        }

        /// <summary>
        /// 
        /// </summary>
        public ObservableCollection<object> NewsCompanyCollection
        {
            get
            {
                return new ObservableCollection<object>(_newsCompanyCollection.NewsCompanies);
            }
        }

        protected override void OnDispose()
        {
            base.OnDispose();
        }
    }
}
